﻿using BootstrapAdmin.DataAccess.Models;

namespace BootstrapAdmin.Web.Core.Services.Production;

public sealed class SpotCheckFilter
{
    public string? Item { get; set; }

    public bool? IsPass { get; set; }

    public string? Shift { get; set; }

    public DateTime? CreatedTimeStart { get; set; }

    public DateTime? CreatedTimeEnd { get; set; }
}

public interface ISpotCheckService
{
    Task<(List<SpotCheck> items, int count)> GetPagedAsync(SpotCheckFilter filter, int pageIndex, int pageItems);
}
